package com.argticling.model.preferences;

import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Column;
import com.argticling.model.Persistent;


@Entity
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(
    name="contact type",
    discriminatorType=DiscriminatorType.STRING
)
@DiscriminatorValue("Contact")
public class AbstractArticlePreference extends Persistent implements ArticlePreference {
    private String description;
    private String preference;

    @Column(name="DESCRIPTION")
    public String getDescription() {
        return description;
    }

    @Column(name="PREFERENCE")
    public String getPreference() {
        return preference;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setPreference(String preference) {
        this.preference = preference;
    }
}